<template>
    <div class="functions">
       <div class="icon">
          <img :src="values.icon" alt="图片" @click="turnTo">
       </div>
    </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
let router = useRouter()
let values = defineProps(['icon','path'])
function turnTo(){
   router.push(values.path)
}
</script>

<style scoped lang="less">
@import url('@/components/Functions/index.less');
</style>